.class public Lcom/instagram/android/creation/widget/UploadCompoundButton;
.super Lcom/instagram/android/widget/IgCheckButton;
.source "UploadCompoundButton.java"


# instance fields
.field private a:Lcom/instagram/android/widget/as;

.field private b:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 18
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 19
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 22
    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 23
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1
    .parameter "context"
    .parameter "attrs"
    .parameter "defStyle"

    .prologue
    .line 26
    invoke-direct {p0, p1, p2, p3}, Lcom/instagram/android/widget/IgCheckButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 15
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/creation/widget/UploadCompoundButton;->b:Z

    .line 27
    return-void
.end method


# virtual methods
.method public setAccount(Lcom/instagram/android/widget/as;)V
    .locals 0
    .parameter "account"

    .prologue
    .line 45
    iput-object p1, p0, Lcom/instagram/android/creation/widget/UploadCompoundButton;->a:Lcom/instagram/android/widget/as;

    .line 46
    return-void
.end method

.method public setChecked(Z)V
    .locals 3
    .parameter "checked"

    .prologue
    .line 31
    invoke-super {p0, p1}, Lcom/instagram/android/widget/IgCheckButton;->setChecked(Z)V

    .line 35
    iget-object v0, p0, Lcom/instagram/android/creation/widget/UploadCompoundButton;->a:Lcom/instagram/android/widget/as;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/instagram/android/creation/widget/UploadCompoundButton;->b:Z

    if-eqz v0, :cond_0

    .line 36
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/creation/widget/UploadCompoundButton;->a:Lcom/instagram/android/widget/as;

    invoke-virtual {v1}, Lcom/instagram/android/widget/as;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->isChecked()Z

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/m/b/a;->a(Ljava/lang/String;Z)V

    .line 38
    :cond_0
    return-void
.end method

.method public setStickySettingEnabled(Z)V
    .locals 0
    .parameter "value"

    .prologue
    .line 49
    iput-boolean p1, p0, Lcom/instagram/android/creation/widget/UploadCompoundButton;->b:Z

    .line 50
    return-void
.end method
